﻿using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace LPlus.Services
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
    public class RequiredExAttribute : ValidationAttribute, IClientModelValidator
    {
         
        public override bool IsValid(object value)
        {
            return base.IsValid(value);
        } 
       
        public void AddValidation(ClientModelValidationContext context)
        {
            MergeAttribute
        }
    }
}
